#ifndef SELECTTARGETDLG_H
#define SELECTTARGETDLG_H

#include "scrollingdialog.h"

class M_Code_Project;
class ProjectBuildTarget;
class wxListBox;

class SelectTargetDlg : public wxScrollingDialog {
  public:
    SelectTargetDlg( wxWindow* parent, M_Code_Project* project, int selected = 0 );
    ~SelectTargetDlg();
    void EndModal( int retCode );
    int GetSelection() const { return m_Selected; }
    ProjectBuildTarget* GetSelectionTarget();
  private:
    void OnListboxSelection( wxCommandEvent& event );
    void OnListboxDClick( wxCommandEvent& event );
    void OnHostApplicationButtonClick( wxCommandEvent& event );
    void UpdateSelected();
    M_Code_Project* m_pProject;
    wxListBox* m_List;
    int m_Selected;
    int m_LastSelected;
    bool xml_File_lock;
    DECLARE_EVENT_TABLE()
};

#endif
